var express = require('express');
var router = express.Router();

router.use(function timeLog(req, res, next) {
    next()
});

/** 登录 */
router.post('/login', async (req, res) => {
    // let db = await req.db(`SELECT * FROM ${router.$outside} ORDER BY id ASC WHERE id=${req.query.id}`);
    res.send(req.body)
});

/** 登录 */
router.post('/register', async (req, res) => {
    // let db = await req.db(`SELECT * FROM ${router.$outside} ORDER BY id ASC WHERE id=${req.query.id}`);
    res.send(req.body)
});


module.exports = router;